package com.wudl.file.remote.config;

import feign.Logger;
import feign.Request;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：wudl
 * @date ：Created in 2022-03-23 23:01
 * @description：
 * @modified By：
 * @version: 1.0
 */


public class FeignConfig {

    @Bean
    public Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }


    /**
     * 修改契约配置，支持Feign原生的注解
     * @return
     @Bean
     public Contract feignContract() {
     return new Contract.Default();
     }
     */
/**
 * 超时时间配置
 *  */
// @Bean
// public Request.Options options() {
// return new Request.Options(5000, 10000);
// }


    /**
     * 自定义拦截器
     * @return
     @Bean
     public FeignAuthRequestInterceptor feignAuthRequestInterceptor(){
     return new FeignAuthRequestInterceptor();
     }
     */
}